<?php 
echo("13424");
echo date("YW", strtotime("2011-01-07"))."</br>"; // gives 201101
echo date("YW", strtotime("2011-12-31"))."</br>"; // gives 201152
echo date("YW", strtotime("2011-01-01"))."</br>"; // gives 201152 too

?>